package com.mimosa.common.message;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.mimosa.common.entity.BaseEntity;

/**
 * 消息回复实体类
 * 
 * @author Mr.bai
 * 
 */
@Entity
@Table(name = "T_MESSAGE_REPLY")
public class TMessageReply extends BaseEntity {
	/** 封装好的站内信息对象 */
	@ManyToOne
	@JoinColumn(name = "messageId", nullable = false)
	private TSiteMessage siteMessage;

	/** 回复内容 */
	@Column(length = 2048, nullable = false)
	private String replyContent;

	/** 回复用户 */
	@Column(length = 32, nullable = false)
	private String replyUserId;

	/** 回复用户 */
	@Column(length = 64, nullable = false)
	private String replyUserName;

	/** 恢复日期 */
	@Column(nullable = false)
	private Date replyDate;

	public TMessageReply(TSiteMessage tSiteMessage, String replyContent, String replyUserId, Date replyDate) {
		super();
		this.siteMessage = tSiteMessage;
		this.replyContent = replyContent;
		this.replyUserId = replyUserId;
		this.replyDate = replyDate;
	}

	public TMessageReply() {
		super();
	}

	public TSiteMessage getSiteMessage() {
		return siteMessage;
	}

	public void settSiteMessage(TSiteMessage siteMessage) {
		this.siteMessage = siteMessage;
	}

	public String getReplyContent() {
		return replyContent;
	}

	public void setReplyContent(String replyContent) {
		this.replyContent = replyContent;
	}

	public String getReplyUserId() {
		return replyUserId;
	}

	public void setReplyUserId(String replyUserId) {
		this.replyUserId = replyUserId;
	}

	public String getReplyUserName() {
		return replyUserName;
	}

	public void setReplyUserName(String replyUserName) {
		this.replyUserName = replyUserName;
	}

	public Date getReplyDate() {
		return replyDate;
	}

	public void setReplyDate(Date replyDate) {
		this.replyDate = replyDate;
	}
}